"""work URL Configuration
# shell命令行开启（进入shell环境）
# python manage.py runserver
The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from shop import views
urlpatterns = [
    path('admin/', admin.site.urls),
    path('add/', views.add, name = 'add'),
    # 详情页提交内容参数  多参数http://127.0.0.1:8000/itemdetail/?item_id=566352261884&ip=11.22.33.43
    path('itemdetail/',views.iteminfoget),
    path('add/<int:a>/<int:b>',views.add2, name ='add2'),
    # 主页商品列表获取
    path('getshoplist/',views.getHaoQuan_list_items, name = 'getshoplist1'),
    path('getshoplistone/', views.getyuanshenglistjson, name='getshoplist2'),
    path('channel/', views.initchannellist, name='getshoplist3'),

    # PC站导航
    path('index/', views.index, name='index'),
    path('login/', views.login, name='login'),
    path('register/', views.register, name='register'),
    path('', views.index),

]
